package bancosys.tec.services.implementor.descriptor.jmx;

import bancosys.tec.services.implementor.descriptor.CachedObjectResolver;

/**
 * MBean que permite que permite que as informações do CachedObjectResolver sejam visíveis através de getters.
 * 
 * @author lundberg
 */
public class CacheStatisticsMBean {

    /**
     * @return HitCount
     */
    public long getHitCount() {
        return CachedObjectResolver.CACHE_HIT_COUNT.get();
    }

    /**
     * @return MissCount
     */
    public long getMissCount() {
        return CachedObjectResolver.CACHE_MISS_COUNT.get();
    }

    /**
     * @return StaleEntriesRemovedCount
     */
    public long getStaleEntriesRemovedCount() {
        return CachedObjectResolver.STALE_ENTRIES_REMOVED_COUNT.get();
    }
}
